// ConsoleApplication1.cpp : 定义控制台应用程序的入口点。
//

#include "stdafx.h"
#include "string"
#include "set"
#include "iostream"
#include "cmath"

/*
*保存计算结果
*/

class Point
{
	friend bool operator>=(const Point& p1, const Point& p2);
	friend Point  operator-(const Point& p1, const Point& p2);
	friend void print(const Point& p);
private:
	double x;
	double y;
public:
	Point(double x1,double y1) : x(x1),y(y1) {}

};

void print(const Point& p)
{
	std::cout<< p.x << " " << p.y;
}

bool operator>=(const Point& p1, const Point& p2)
{
	if ((p1.x*p1.x + p1.y*p1.y) >= (p2.x*p2.x + p2.y*p2.y))
		return true;
	else return false;

}

Point  operator-(const Point& p1, const Point& p2)
{
	return Point(p1.x - p2.x, p1.y - p2.y);
}








class FastestPoint 
{
private:
	double centerX;
	double centerY;
	double radius;

public:
	FastestPoint(double x = 0, double y = 0, double r = 0)
		: centerX(x),centerY(y),radius(r)
	{}
	FastestPoint(std::istream& is);
	Point toResult();

};


FastestPoint::FastestPoint(std::istream& is)
{
	is >> centerX >> centerY >> radius;
}

 Point FastestPoint::toResult()
{
	Point result(centerX, centerY);

	for (int tx = ceil(centerX - radius); tx <= floor(centerX + radius); tx++)
	{
		double d = sqrt(radius*radius - ((double)tx - centerX)*((double)tx - centerX));
		int ty = ceil(centerY - d);
		if (Point(tx - centerX, ty - centerY) >= (result - Point(centerX, centerY)))
				result = Point(tx, ty);
		ty = floor(centerY + d);
		if (Point(tx - centerX, ty - centerY) >= (result - Point(centerX, centerY)))
				result = Point(tx, ty);
		
	}

	return result;
}


int main()
{
	double a, b, r;
	while (std::cin >> a >> b >> r)
	{
		FastestPoint fp(a,b,r);
		print(fp.toResult());
		std::cout << std::endl;
	}
	
    return 0;
}